#pragma once
#include "cObject.h"
#include "cAniModel.h"

class cAniObject : public cObject
{
	void animateMesh( float elpasedTime );

public:
	cAniModel*									m_aniModel;
	ID3DXAnimationController*	m_pAnimControl;	//Animation control
	ID3DXAnimationSet*				m_currentAnim;
	DOUBLE											m_currentAnimPeriod;
	bool													m_bLoop;

public:
	cAniObject();
	void setModel( cAniModel* aniModel );
	void release();
	void setAnimation( int index );

	void animate();
	void render(bool bDrawBBox = false);
	//void render(bool bDrawBBox = false) override;

};